package com.wn.demo01;

/**
 * @author yellow Docter
 * @date 2024-07-24
 * @desc 蜗牛创想：www.woniuxy.com
 *   实现 Runnable 接口创建线程
 */
public class Demo02 {

    public static void main(String[] args) {
        //01 创建接口实现类
        MyRunnable myRunnable = new MyRunnable();
        //02 创建thread 调用start 方法
        Thread thread = new Thread(myRunnable);
        //启动线程
        thread.start();
    }

}
